import type { LabelValueDto, ListResult } from "./class-define";
import type { FilesDto } from "./files";
import appservice from "./request";
const baseURL = "api/openid-dict-application"

export function FindClientByClientId(clientId): Promise<OpenIddictApplicationDto> {
    return appservice.get({
        url: `${baseURL}/by-client-id/${clientId}`,
    });
}



export class OpenIddictApplicationDto {
    applicationType: string;
    clientId: string;
    clientSecret: string;
    clientType: string;
    concurrencyToken: string;
    consentType: string;
    displayName: string;
    displayNames: string;
    jsonWebKeySet: string;
    permissions: string;
    postLogoutRedirectUris: string;
    properties: string;
    redirectUris: string;
    requirements: string;
    settings: string;
    logo: string
    attachments: FilesDto[]
    constructor() {
        this.attachments = []
    }
}